package com.lx.mobileplayer.mvp.view.fragment

import com.itheima.player.model.bean.VideosBean
import com.lx.mobileplayer.mvp.persenter.MvChildPresenter
import com.lx.mobileplayer.mvp.view.Iview.IMvChildView
import com.lx.mobileplayer.mvp.view.adapter.MvChildAdapter

/** 类说明：Mv页的子Fragment
 *  create by liuxiong at 2019/4/27 0027 22:05
 */
class MvChildFragment: BaseListFragment<MvChildAdapter, VideosBean>() ,IMvChildView{


    private val mPresenter by lazy{
        MvChildPresenter(this)
    }

    override fun createAdapter(): MvChildAdapter {
        return MvChildAdapter()
    }

    override fun loadData(offset: Int, pageSize: Int) {
        var position=arguments?.getInt("position")

        mPresenter.requestData(position.toString(),offset,pageSize)
    }
}